package org.dtrd.modules.food.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dtrd.modules.food.entity.bean.EmsGlycemicIndexBean;
import org.dtrd.modules.food.entity.po.DtrdExtEmsYwFoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 食材库 Mapper 接口
 * </p>
 *
 * @author QR
 * @since 2021-12-08
 */
@Mapper
public interface DtrdExtEmsYwFoodsMapper extends BaseMapper<DtrdExtEmsYwFoods> {

    /**
     * 查询升糖食物列表
     *
     * @param page
     * @param giIndex
     * @param foodName
     * @return
     */
    Page<EmsGlycemicIndexBean> selectGiFoodList(IPage<EmsGlycemicIndexBean> page, @Param("giIndex") Integer giIndex, @Param("foodName") String foodName);
}
